﻿using System;

public static partial class Extensions
{
   
    public static DateTime ToExcelDateTime(this double @this)
    {
        var zeroTime = new DateTime(1900, 1, 1);
        var second = (@this) * 24 * 60 * 60;
        return  zeroTime.AddSeconds(second).AddDays(-1);
    }
}
